package com.istock.union.user.dao.ext;

import java.util.List;
import java.util.Map;

import com.istock.union.user.model.MenuInfo;
import com.istock.union.user.model.ext.MenuInfoVO;

public interface ExtMenuInfoMapper {

	/**得到某一个user的所有权限配置信息
	 * 
	 * @param userId
	 * @return
	 */
	public List<MenuInfo> findMenuByCredentialId(Map<String , Object> paramMap);
	
	public List<MenuInfo> findAllMenu();
	
	/**得到某一个用户的权限标识列表
	 * @param userId
	 * @return
	 */
	public List<String> selectPermsByCredentialId(String credentialId);
	
	public List<String> selectAllPerms();
	
	public MenuInfoVO findMenuInfoById(String id);
	
	/**
	 * 根据角色ID查询资源菜单树
	 * 
	 * @param roleId
	 * @return
	 */
	public List<String> selectMenuTree(String roleId);
}
